<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>后台login</title>
	<script src="{{url('/js/jquery.min.js')}}"></script>
</head>
<body>
	<form id="u_form" action="{{url('/admin/doLogin')}}" method="post">
		<input type="hidden" name="_token" value="{{ csrf_token() }}">
		用户名:<input type="text" name="name"><br><br>	
		密  码:<input type="text" name="pwd"><br><br>
		<!-- <button class="btn">ok</button> -->
		<input class="btn" type="button" value="ok">
			
	</form>
	<script>
		$(function(){
			$('.btn').click(function(){
				if($('#u_form input[name=name]').val() == '' || $('#u_form input[name=pwd]').val() == '')
				{
					alert('用户名后密码不能为空');
					return false;
				}
				$("#u_form").submit();
			});
		});
	</script>
</body>
</html>